package Application.Controller;

import Application.AppJoint;
import Application.Main;
import javafx.fxml.FXML;
import javafx.scene.Parent;

public class WelcomeController extends Controller {

    @FXML
    public void newProjectOnAction(){
        //AppJoint.getInstance().getMainWindowController().newCanvasOnAction();
        this.getMain().showNewCanvasWindow();
        this.getLocalStage().close();
        AppJoint.getInstance().setStart(true);
    }

    @FXML
    public void openPicOnAction(){
        this.getMain().showMainWindow();
        AppJoint.getInstance().getMainWindowController().openPic();
        getLocalStage().close();
        AppJoint.getInstance().setStart(true);
    }

    @FXML
    public void shutDownOnAction(){
        getLocalStage().close();
        getPrimarStage().close();
    }
}
